package org.apache.lucene.index;

public class TagUtil {
  
  public static boolean toBoolean(byte b) {
    if (b == 0) return false;
    else return true;
  }
  
  public static byte toByte(boolean value) {
    byte b = 0;
    if (value) b = 1;
    return b;
  }
}
